/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/10/13 16:02
 * @ Description:
 */
public class ThreadShareObjectTest extends Thread{
    private static MultiThreadShareBusiness o=new MultiThreadShareBusiness();
    @Override
    public void run(){
        while (true) {
            o.setThreadId(Thread.currentThread().getId());
            o.business();
        }
    }
    public static void main(String[] args) {
        Thread thread=new ThreadShareObjectTest();
        thread.start();
        Thread thread2=new ThreadShareObjectTest();
        thread2.start();
    }
}
